window: Invert check that was wrong
authorBenjamin Otte <otte@redhat.com>
Fri, 29 Apr 2011 01:27:02 +0000 (03:27 +0200)
committerBenjamin Otte <otte@redhat.com>
Fri, 29 Apr 2011 01:27:02 +0000 (03:27 +0200)
gtk/gtkwindow.c

index 5c6496c1ac264b7d9c85ea7a86b4d3585a05f66c..5b9be4ebf05c723ce78059176e96284edbbe2a59 100644 (file)
@@ -4960,7 +4960,7 @@ gtk_window_realize (GtkWidget *widget)
       allocation.y = 0;
 
       gtk_window_guess_default_size (window, &allocation.width, &allocation.height);
-      if (allocation.width || allocation.height)
+      if (allocation.width == 0 || allocation.height == 0)
        {
          /* non-empty window */
          allocation.width = 200;